<template>
	<view class="cu-modal" :class="modalName=='Modal'?'show':''">
		<view class="cu-dialog">
			<view class="cu-bar bg-white justify-end">
				<view class="content">{{title}}</view>
				<view class="action" @tap="hideModal">
					<text class="cuIcon-close text-red"></text>
				</view>
			</view>
			<view class="padding-xl">
				{{content}}
			</view>
		</view>
	</view>
</template>

<script>
	export default {
		name: 'tip-modal',
		props: ['title', 'content', 'modalName'],
		data () {
			return {
				
			}
		},
		methods: {
			hideModal() {
				this.$emit('hideModal')
			}
		}
	}
</script>

<style>
</style>
